m=int(input())
h=int(input())
if 7<m and m<17:
    print("At School")
elif m==7:
    if h>=30:
        print("At School")
    else:
        print("Off School")
else:
    print("Off School")